import json
dict1 = {'name': 'zhangsan', 'age': 1,'sex': 'male'}
print(json.dumps(dict1))